// const { defineConfig } = require("@vue/cli-service");
const webpack = require("webpack");
const path = require("path");
module.exports = {
  transpileDependencies: true,
  publicPath: "./", //默认的'/'是绝对路径，如果不确定在根路径，改成相对路径'./'
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules)/,
          use: {
            loader: "babel-loader",
            options: {
              presets: ["@babel/preset-env"],
            },
          },
        },
      ],
    },
    // plugins: [
    //   new webpack.DllReferencePlugin({
    //     context: process.cwd(),
    //     manifest: require("./dll/vendor-manifest.json"),
    //   }),
    //   new AddAssetHtmlPlugin({
    //     // dll文件位置
    //     filepath: path.resolve(__dirname, "./dll/*.js"),
    //     // dll 引用路径
    //     publicPath: "./vendor",
    //     // dll最终输出的目录
    //     outputPath: "./vendor",
    //   }),
    // ],
  },
};
